<template>
  <div class="bottom">
    <div class="bottom-main-header">
      <ul>
        <li v-for="(item,index) in data.navList" :class="index===data.num?'bottom-border':''" @click="bordeClick(index)">
          {{item.name}}
        </li>
      </ul>
    </div>
    <div class="bottom-main-content">
      <div>
        <img src="/images/personalCenter/noOrder.png">
        <p>暂无售后订单</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import {reactive} from "vue";

let data = reactive({
  navList:[
    {name: '申请售后'},
    {name: '处理中'},
    {name: '已处理'},
  ],
  num:0,
  list:[]
})
let bordeClick = (index)=>{
  data.num = index
}
</script>

<style lang="less" scoped>
.bottom {
  box-shadow: 0 0 10px 0 #eaeaea;
  a {
    text-decoration: none;
  }
  .bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 55px;
    h3 {
      font-size: 20px;
      font-weight: 400;
    }
    a {
      color: #666;
      font-size: 14px;
    }
  }
  //订单导航
  .bottom-main-header {
    padding: 45px 55px;
    ul {
      display: flex;
      height: 57px;
      background: #f6f6f6;
      align-items: center;
      justify-content: space-around;
      li {
        height: 100%;
        cursor: pointer;
        line-height: 57px;
        font-size: 18px;
        box-sizing: border-box;
      }
      .bottom-border {
        color: #000;
        border-bottom: 2px solid #000;
      }
    }
  }
  //订单内容
  .bottom-main-content {
    text-align: center;
    margin-top: 36px;
    padding-bottom: 58px;
    padding-right: 55px;
    padding-left: 55px;
    div {
      img {
        width: 138px;
        height: 138px;
        margin: 0 auto;
      }
      p {
        text-align: center;
      }
    }
  }
}
</style>